<jsp:include page="header.jsp" />
<jsp:include page="sidenav.jsp" />

<%@ page import="databean.ItemBean" %>

<div id="content">

    <h1>View a posted book - Result</h1>
	<hr />
	
<% 
	ItemBean item = (ItemBean) request.getAttribute("rs");	
%>
	
    <br><label>Your typed Item ID:</label> <a href="<%=item.getViewItemURL() %>" target=_blank><font color=#FF0000>${rq}</font></a> (<== You can click!)<br>
	
	<br><img style ="background-color:#DFE9DD;padding:5px;" src="<%=item.getPictureURL()%>"><br/>
	<div style ="width:80%; display:block;"><br/>
<p><label>Title: </label><span class="right"><%=item.getTitle() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Category ID: </label><span class="right"><%=item.getCategoryID() %> (<%=item.getCategoryName() %>)</span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Condition: </label><span class="right"><%=item.getConditionDisplayName() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Current Price: </label><span class="right"><%=item.getCurrentPrice() %> (<%=item.getCountry() %>)</span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>BuyItNow Price: </label><span class="right"><%=item.getBuyItNowPrice() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Description: </label><span class="right"><%=item.getDescription() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Location: </label><span class="right"><%=item.getLocation() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Start Time: </label><span class="right"><%=item.getStartTime() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>End Time: </label><span class="right"><%=item.getEndTime() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Listing Duration: </label><span class="right"><%=item.getListingDuration() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Payment Methods: </label><span class="right"><%=item.getPaymentMethods() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Quantity: </label><span class="right"><%=item.getQuantity() %></span></p>
<div style="opacity: .2;"><hr/></div>
<p><label>Return Accepted Option: </label><span class="right"><%=item.getReturnsAcceptedOption() %></span></p>

	<br /><br /><input class="right" type="button" value="Edit" onClick="editItem(<%=item.getItemID()%>);"></input>
		</div>
</div>
<jsp:include page="footer.jsp" />